package com.wuliu.system.domain.dto.app;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author realue
 * @version 1.0
 * @date 2023-11-04 10:21
 */
@Data
@ApiModel(description = "批量揽收请求类")
public class BatchCollectOrderDto {
    @ApiModelProperty(value = "客户编号/月结账号")
    private String feeAccno;
    @ApiModelProperty(value = "客户姓名")
    private String compName;
    @Valid
    private List<CollectOrderItem> collectOrderItemList;

    @Data
    public static class CollectOrderItem {
        @NotBlank(message = "运单号不能为空")
        @ApiModelProperty(value = "运单号")
        private String orderNo;
        @ApiModelProperty(value = "重量")
        private BigDecimal weight;
        @ApiModelProperty(value = "物品名称")
        private String cargoName;
        @ApiModelProperty(value = "付款方式")
        private Integer paySide;
    }
}
